package com.heima.wemedia.v1.controller;

import com.heima.common.threadlocal.UserThreadLocalUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @GetMapping("/demo")
    public String demo(){
        return UserThreadLocalUtils.getUserId()+"";
    }
}
